<div class="view-container gray-back">
    <div class="row">
        <div id="wrap_menu_indicator_location_detail1">
            <div id="wrap_menu_indicator_location_detail2">
                <fly:block name="indicator">
                    <fly:list name="list_new_all">
                        <div id="menu_indicator_location_detail">
                            <ul class="breadcrumb">
                                <li class="li_current_root">
                                    <a href="<fly:variable name='language_folder'/>/index.php" title="Home"><fly:translate name='text_home'/><fly:modify name="text_home" /></a>	
                                </li>
                                <fly:list name="list_new">
                                    <li class="li_current_root" >
                                        &nbsp;<a href="<fly:variable name='language_folder'/>/<fly:variable name='url_news' />" title="<fly:variable name='meta_title' />"><fly:variable name="nom_news" /></a>

                                    </li>
                                </fly:list>									
                            </ul>
                        </div>
                    </fly:list>
                </fly:block>
                <fly:block name="indicatorCA">
                    <fly:list name="list_new_allCA">
                        <div id="menu_indicator">
                            <ul class="breadcrumb">
                                <li class="li_current_root">
                                    <a href="<fly:variable name='language_folderCA'/>/index.php" title="Home"><fly:translate name='text_home'/></a><fly:modify name="text_home" />
                                <fly:block name='bar1CA'>></fly:block>	
                                </li>
                                <fly:list name="list_newCA">
                                    <li class="li_current_root" >
                                        &nbsp;<a href="<fly:variable name='language_folderCA'/>/<fly:variable name='url_newsCA' />" title="<fly:variable name='meta_titleCA' />"><fly:variable name="nom_newsCA" /></a>
                                    <fly:block name='barCA'>></fly:block>												
                                    </li>
                                </fly:list>	
                                <fly:block name="real_not_intree">
                                    <li class="li_current_root">
                                        &nbsp;<a href="<fly:variable name="link_not_intree" />" title="<fly:variable name="meta_title_not_intree" />"><fly:variable name="nom_not_intree" /></a>
                                        >&nbsp;
                                        <a href="<fly:variable name="url_province" />" title="<fly:variable name="title_province" />"><fly:variable name="province" /></a>
                                    </li>
                                </fly:block>										
                            </ul>
                        </div>
                    </fly:list>
                </fly:block>				
            </div>
        </div>
        <ul class="breadcrumb">
            <li><a href="<fly:variable name='url_province'/>" title="<fly:variable name='title_province'/>"><fly:variable name="province" /></a></li>
            <li><fly:variable name="district" /></li>
        </ul>
        <div class="col-lg-4 col-md-4 col-sm-4 hidden-xs" id="banner-right" style="<fly:variable name='margin_top'/>">
            <div class="gray-back">
                <fly:block name="contact_email">
                    <div id="contact"><div id="contact1"><div id="contact2"><div id="contact3">					
                                    <div id="button_contact_user" style="display:none">						
                                        <input type="button" name="btn_contact" id="btn_contact" value="<fly:translate name='botton_5'/>"  /> 
                                        <div id="botton_5">
                                            <fly:modify name='botton_5'/>
                                            <fly:modify name="text_14" />
                                        </div>
                                    </div>
                                    <span id="loading"></span>
                                    <div id="show_main_message" style="display:none">
                                        <span id="show_message"></span>
                                    </div>

                                    <div id="contact_variable"> 
                                        <!-- <input type="button" name="btn_variable" id="btn_variable" value="<fly:translate name='botton_6'/>"  /> -->
                                        <div id="btn_variable" style="margin-top:5px;"><fly:translate name='botton_6'/></div>
                                        <div id="botton_6">
                                            <fly:modify name='botton_6'/>
                                            <fly:modify name='text_16'/>
                                        </div>
                                    </div>

                                    <div id="show_variable_message" style="display:none">
                                        <div id="variable_message"></div>
                                    </div>
                                    <fly:block name="connection">
                                        <div id="print_news" style="margin-top:7px;">
                                            <a rel="nofollow" onclick="window.open(this.href, 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=690,height=480,directories=no,location=no'); return false;" title="Print" href="print.php?id=<fly:variable name='id_location'/>">
                                                <fly:translate name='text_print'/><fly:modify name='text_print'/>
                                            </a>
                                            <a rel="nofollow" onclick="window.open(this.href, 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=690,height=480,directories=no,location=no'); return false;" title="Print" href="print.php?id=<fly:variable name='id_location'/>">
                                                <img alt="Print" src="../_design/printButton.png" id="img_pront">
                                            </a>
                                            <fly:modify name='text_19'/>
                                            <fly:modify name='text_20'/>
                                        </div>
                                    </fly:block>
                                    <fly:block name="desconnec">
                                        <div id="print_news" style="margin-top:7px;">
                                            <a><fly:translate name='text_print'/></a>
                                            <img alt="Print" src="../_design/printButton.png" id="img_pronts">
                                        </div>
                                        <div id="show_message_print" style="display:none">
                                            <div id="print_message" style="margin-top:5px;"></div>
                                        </div>					
                                    </fly:block>
                                </div></div></div></div>
                </fly:block>			
                <fly:block name="main_ads">
                    <div class="location_ads" style="display:none;">
                        <img title="ads" src="/_design/slideshow.gif" width="265" height="199"  />
                    </div>
                </fly:block>
                <fly:block name="video">
                    <div class="location_video">			
                        <div id="video_main">
                            <div class="b_imgs" >
                                <div id="photo_texte" >	
                                    <a class="video_thumbnail" style="width:<fly:variable name='width'/>px; height:<fly:variable name='height'/>px;" href="javascript:getURL('<fly:variable name="url_video_main"/>',null,null,'');" title="<fly:variable name="video_title"/>">
                                        <img  id="img_main" src="<fly:variable name='src_video_main' />" width="<fly:variable name='width'/>px" height="<fly:variable name='height'/>px" />
                                        <i></i>
                                        <u><fly:variable name='duration'/></u>
                                    </a>
                                </div>
                            </div>											
                        </div>
                    </div>
                </fly:block>
                <div class="clear"></div>
                <fly:block name="img_right">
                    <div class="follow-us advertise" style="display:none">
                        <h6 class="header-blue"><b><fly:translate name="text_follow"/><fly:modify name="text_follow" /></b></h6>
                        <ul>
                           <li>
	                        <a href="#" target="_blank"><img alt="Facebook" src="/_design/icons-social/facebook_circle_color.png" /></a>
	                        <a href="#" target="_blank"><img alt="Google" src="/_design/icons-social/google_circle_color.png" /></a>
	                        <a href="#" target="_blank"><img alt="Linkedin" src="/_design/icons-social/linkedin_circle_color.png" /></a>					
	                        <a href="#" target="_blank"><img alt="Twitter" src="/_design/icons-social/twitter_circle_color.png" /></a>
                    	</li>
                        </ul>
                    </div>
                    <div class="follow-us advertise" id="service">
                        <h6 class="header-blue"><b><fly:translate name="text_service"/><fly:modify name="text_service" /></b></h6>
                        <ul>
                            <li><i class="arrow_list"></i><fly:translate name="text_service1"/><fly:modify name="text_service1" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service2"/><fly:modify name="text_service2" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service3"/><fly:modify name="text_service3" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service4"/><fly:modify name="text_service4" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service5"/><fly:modify name="text_service5" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service6"/><fly:modify name="text_service6" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service7"/><fly:modify name="text_service7" /></li>
                        </ul>
                    </div>
                    <div class="follow-us advertise" id="contact_us">
                        <h6 class="header-blue"><b><fly:translate name="text_contact_us"/><fly:modify name="text_contact_us" /></b></h6>
                        <ul>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us1"/><fly:modify name="text_contact_us1" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us3"/><fly:modify name="text_contact_us3" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us2"/><fly:modify name="text_contact_us2" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us4"/><fly:modify name="text_contact_us4" /></a></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us5"/><fly:modify name="text_contact_us5" /></li>
                        </ul>
                    </div>
               </fly:block>
            </div></div><!-- END:banner-right -->


        <div id="banner-right" class="col-lg-4 col-md-9 col-sm-4 visible-xs">
            <div class="follow-us advertise" style="display:none">
                <h6 class="header-blue"><b><fly:translate name="text_follow"/><fly:modify name="text_follow" /></b></h6>
                <ul>
                    <li>
                        <a href="#" target="_blank"><img alt="Facebook" src="/_design/icons-social/facebook_circle_color.png" /></a>
                        <a href="#" target="_blank"><img alt="Google" src="/_design/icons-social/google_circle_color.png" /></a>
                        <a href="#" target="_blank"><img alt="Linkedin" src="/_design/icons-social/linkedin_circle_color.png" /></a>					
                        <a href="#" target="_blank"><img alt="Twitter" src="/_design/icons-social/twitter_circle_color.png" /></a>
                    </li>
                </ul>
            </div>
            <div class="follow-us advertise" id="service">
                        <h6 class="header-blue"><b><fly:translate name="text_service"/><fly:modify name="text_service" /></b></h6>
                        <ul>
                            <li><i class="arrow_list"></i><fly:translate name="text_service1"/><fly:modify name="text_service1" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service2"/><fly:modify name="text_service2" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service3"/><fly:modify name="text_service3" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service4"/><fly:modify name="text_service4" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service5"/><fly:modify name="text_service5" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service6"/><fly:modify name="text_service6" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_service7"/><fly:modify name="text_service7" /></li>
                        </ul>
                    </div>
                    <div class="follow-us advertise" id="contact_us">
                        <h6 class="header-blue"><b><fly:translate name="text_contact_us"/><fly:modify name="text_contact_us" /></b></h6>
                       <ul>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us1"/><fly:modify name="text_contact_us1" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us3"/><fly:modify name="text_contact_us3" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us2"/><fly:modify name="text_contact_us2" /></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us4"/><fly:modify name="text_contact_us4" /></a></li>
                            <li><i class="arrow_list"></i><fly:translate name="text_contact_us5"/><fly:modify name="text_contact_us5" /></li>
                        </ul>
                    </div>
            <div id="banner-right" class="col-lg-4 col-md-4 col-sm-4 visible-xs">
                <div class="gray-back">
                    <img src="/_design/freelawer.png" alt="banner-right" class="padd-lr-5">
                </div>
            </div>
        </div>
        <div class="col-lg-8 col-md-8 col-sm-8" id="view-info">			
            <div class="detail_own_location">
                <fly:block name="detail_own">
                    <div id="wrap_etail_own_location">						
                        <div id="form-ligne-location">
                            <div id="form-titre-comment"><fly:translate name="label_19" /><fly:modify name="label_19" /></div>
                            <div id="form-field-comment"><fly:variable name="visible" /></div>
                        </div>
                        <div id="form-ligne-location">
                            <div id="form-titre-comment"><fly:translate name="label_20" /><fly:modify name="label_20" /></div>
                            <div id="form-field-comment">
                                <div id="bck_status"><fly:variable name="status_location" /></div>
                                <div id="but_validate">
                                    <form method="post" >
                                        <fly:block name="validate"><input type="submit" id="status_waiting" name="status_waiting" value="<fly:translate name="button_validate" />" /><fly:modify name="button_validate" /></fly:block>
                                        <fly:block name="refused">
                                            <div class="get_comment_refused" style="display:none;"><fly:variable name="get_comment_refused" /></div>
                                            <input type="button" id="validate_refused" name="validate_refused" onclick='updateRefused()' value="<fly:translate name="button_refused" />" /><fly:modify name="button_refused" /></fly:block>
                                    </form>
                                </div>	
                                <div id="but_validate">
                                    <form method="post" >									
                                        <fly:block name="rented_rented"><input type="submit" id="validate_rented" name="validate_rented" value="<fly:translate name="button_rented" />" /><fly:modify name="button_rented" /></fly:block>
                                    </form>
                                </div>	
                                <div id="but_validate">
                                    <form method="post" >									
                                        <fly:block name="rented_sold"><input type="submit" id="validate_sold" name="validate_sold" value="<fly:translate name="button_sold" />" /><fly:modify name="button_sold" /></fly:block>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <fly:block name="user_comment">
                            <div id="form-ligne-location">
                                <div id="form-titre-comment"><fly:translate name="label_21" /><fly:modify name="label_21" /></div>
                                <div id="form-field-comment"><fly:variable name="comment" /></div>
                            </div>
                        </fly:block>
                        <div id="form-ligne-location">
                            <fly:translate name="text_18" /><fly:modify name="text_18" />
                        </div>
                    </div>

                    <fly:block name="sesstion_user">
                        <fly:block name="modify_place">										
                            <div id="modify_place">
                                <div id="modify_click"><fly:translate name="button_3" /></div>
                                <span id="btn_3">
                                    <fly:modify name="button_7" /><fly:modify name="button_3" />
                                    <input type="hidden" value="<fly:translate name="button_7" />" id="val_button_create_hid" />
                                    <script type="text/javascript">
                                                $('document').ready(function() {
                                        $('.btn_c_l_t').text($('#val_button_create_hid').val());
                                        });</script>
                                </span>
                            </div>
                        </fly:block>
                        <fly:include name='menubarMultiLanguage' />
                        <input type="hidden" id="id_location" name="id_location" value="<fly:variable name='language_link'/>"/>	

                    </fly:block>					
                </fly:block>		

            </div>		
            <div id="main">		

                <h4 class="title"><b><fly:variable name="place_name" /></b></h4>
                <div id="location_main_photos" class="location_main_photos">
                    <fly:block name="main_photo">
                        <div class="location_photos">
                            <div class="b_imgs" >
                                <div id="photo_texte" >

                                    <img title="<fly:variable name='title_photo' />" src="/<fly:variable name='src_photo' />" />

                                </div>
                            </div>
                        </div>
                    </fly:block>
                </div>

                <fly:block name="no_sesstion_user">
                    <fly:block name="liste_no_session">
                        <!-- ======================== Gallery of Item =========================== -->

                        <div id="gallery" class="row">

                            <div class="col-lg-12">
                                <h6 class="header-gray"><b><fly:translate name="text_9"/><fly:modify name="text_9" /></b></h6>
                                <div class="col-lg-12">
                                    <div class="row gray-back">
                                        <!--<div id="slideshow">
                                            <ul id="imageGallery">-->
                                            <fly:list name='list_photo_no_session'>
                                                <!--<div class="col-lg-3 col-md-3 col-sm-3 col-xs-6">-->

                                                        <!--<li data-thumb="/photos/preview-photo/villa-6-bedrooms-for-rent-in-sen-sok-1-139304989694779-139417131373091.jpg">
                                                            <img src="/<fly:variable name='url_profil_photo_no_session' />" />
                                                        </li>-->
                                                    <a href="/<fly:variable name="url_profil_photo_zoom_no_session" />" class="zoom-gallery">
                                                       <img title="<fly:variable name='title_no_session' />" src="/<fly:variable name='url_profil_photo_no_session' />" />
                                                    </a>
                                                <!--</div>-->
                                            </fly:list>
                                            <!--</ul>
                                        </div>-->
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- ======================= --------------------- ====================== -->
                    </fly:block>
                </fly:block>
                <!-- ====== thumbail photos ====== -->

                <fly:block name="tab_detail_not_owner">
                    <fly:include name='menutabMultiLanguageNotOwner' />
                </fly:block>
                <div class="tab-content">
                    <div class="tab-pane fade in active" id="eng">
                        <div id="info-detail" class="info-detail">
                        <h6 class="header-gray"><span class="glyphicon glyphicon-info-sign"></span><b><fly:translate name="title_about_property"/><fly:modify name="title_about_property"/></b></h6>
                            <fly:block name="address">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_2" /><fly:modify name="label_2" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="address" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="bedroom">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_31" /><fly:modify name="label_31" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="bedroom" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="bathroom">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_32" /><fly:modify name="label_32" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="bathroom" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="price_rental">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_8" /><fly:modify name="label_8" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="price_rental" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="price_sell">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_26" /><fly:modify name="label_26" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="price_sell" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="length">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_10" /><fly:modify name="label_10" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="length" /> m</div>
                                </div><br>
                            </fly:block>
                            <fly:block name="width">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_11" /><fly:modify name="label_11" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="width" />  m</div>
                                </div><br>
                            </fly:block>
                            <fly:block name="size_building">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_27" /><fly:modify name="label_27" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="size_building" />  m2 
                                        <span class="total_ha"><fly:variable name="total_hata" /></span>
                                        <span class="total_ha"><fly:variable name="total_price_in_ha" /></span>							
                                    </div>
                                </div><br>
                            </fly:block>
                            <fly:block name="height">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_23" /><fly:modify name="label_23" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="height" />  m</div>
                                </div><br>
                            </fly:block>
                            <fly:block name="length_land">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_28" /><fly:modify name="label_28" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="length_land" />  m</div>
                                </div><br>
                            </fly:block>
                            <fly:block name="width_land">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_29" /><fly:modify name="label_29" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="width_land" />  m</div>
                                </div><br>
                            </fly:block>
                            <fly:block name="size_land">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_30" /><fly:modify name="label_30" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="size_land" />  m2
                                        <span class="total_ha"><fly:variable name="total_land_hata" /></span>
                                        <span class="total_ha"><fly:variable name="total_price_land_in_ha" /></span>
                                    </div>
                                </div><br>
                            </fly:block>
                          
                            <fly:block name="mezzanine">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_12" /><fly:modify name="label_12" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9"><div id="keyword_location_block1">&nbsp;</div></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="furnished_apartment">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_13" /><fly:modify name="label_13" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9"><div id="keyword_location_block1" class="keyword_location_block1">&nbsp;</div></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="furnished_detail">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_14" /><fly:modify name="label_14" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="furnished_detail" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="floor">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_15" /><fly:modify name="label_15" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="floor" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="number_floor">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_16" /><fly:modify name="label_16" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="number_floor" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="tenant">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_17" /><fly:modify name="label_17" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9"><div id="keyword_location_block1">&nbsp;</div></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="end_tenant">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="label_18" /><fly:modify name="label_18" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9"><fly:variable name="end_tenant" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="reference">
                                <div id="form-ligne-location" class="row">
                                    <div id="form-titre-location" class="col-lg-3 col-md-3 col-sm-3 col-xs-3"><fly:translate name="xml_reference" /><fly:modify name="xml_reference" /></div>
                                    <div id="form-field-location" class="col-lg-7 col-md-7 col-sm-7 col-xs-9">: <fly:variable name="reference" /></div>
                                </div><br>
                            </fly:block>
                            <fly:block name="keyword_location">
                                <div id="keyword_location_block">
                                    <div id="wrap_keyword_block">
                                        <fly:list name="keyword1">
                                            <div id="keyword_location_block1"><a href="<fly:variable name="url_k1" />" title="<fly:variable name="title_k1" />"><fly:variable name="k1" /></a></div>
                                        </fly:list>
                                    </div>
                                    <div id="wrap_keyword_block">
                                        <fly:list name="keyword2">
                                            <div id="keyword_location_block2"><a href="<fly:variable name="url_k2" />" title="<fly:variable name="title_k2" />"><fly:variable name="k2" /></a></div>
                                        </fly:list>
                                    </div>
                                </div>
                            </fly:block>
                            	
                        	
                        	<h6 class="header-gray"><span class="glyphicon glyphicon-info-sign"></span><b><fly:translate name="title_featured_property"/><fly:modify name="title_featured_property"/></b></h6>
                        	
                        		<fly:block name="show_full_description">
                           	 		<fly:variable name="full_description" />
                        		</fly:block>
		                        <fly:block name="text_reanted_sold">
		                            <div class="text_reanted_sold"><div class="<fly:variable name='text_reanted_sold' />"></div></div>
		                        </fly:block>		
                        			
                            <fly:block name="sesstion_user">
                                <div class="clear"></div>
                                <fly:block name="modify_place">
                                    <input class="submit" type="button" name="modify_marker" id="modify_marker" value="<fly:translate name='botton_2'/>" /><fly:modify name="botton_2" />
                                    <input class="submit" type="button" name="modify_upload" id="modify_upload" value="<fly:translate name='botton_3'/>" /><fly:modify name="botton_3" />
                                </fly:block>
                            </fly:block>
                            <fly:block name="client_request">
                                <form role="form" method="post" autocomplete="off">

                                    <!-- ====== header ====== -->
                                    <div class="row">
                                        <h6 class="header-gray"><span class="glyphicon glyphicon-edit"></span><b><fly:translate name="c_title"/><fly:modify name="c_title"/></b></h6>
                                    </div>

                                    <input type="hidden" name="c_subject" id="c_subject" value="<fly:variable name='reference' />"/>

                                    <!-- ====== title ====== -->
                                    <!-- ====== first name ====== -->
                                    <div class="form-group">
                                        <label for="txtFirstName" class="col-sm-3 control-label"><fly:translate name="lbl_fcname" /> *<span id="loading"></span><fly:modify name='lbl_fcname' /></label>
                                        <div class="col-sm-9">
                                            <input autocomplete="off" type="text" name="txt_cfname" placeholder="Full Name" id="txt_cfname" class="form-control" required="required" size="25" maxlength="255" />
                                        </div>
                                    </div>
                                    <!-- ====== Email ====== -->
                                    <div class="form-group">
                                        <label for="txtEmail" class="col-sm-3 control-label"><fly:translate name="lbl_email" /> *<span id="loading"></span><fly:modify name='lbl_email' /></label>
                                        <div class="col-sm-9">
                                            <input autocomplete="off" type="text" name="txt_cemail" placeholder="Email" id="txt_cemail" class="form-control required email info_bull text" size="25" maxlength="255" />
                                        </div>
                                    </div>
                                    <!-- ====== phone ====== -->
                                    <div class="form-group">
                                        <label for="txtPhone" class="col-sm-3 control-label"><fly:translate name="lbl_cphone" />*<span id="loading"></span><fly:modify name='lbl_cphone' /></label>
                                        <div class="col-sm-9">
                                            <input autocomplete="off" type="text" name="txt_cphone" id="txt_cphone" placeholder="Phone" class="form-control" required="required" size="25" maxlength="255" />
                                        </div>
                                    </div>

                                    <!-- ====== country ====== -->
                                    <!-- ====== captcha ====== -->
                                    <!-- ====== Message ====== -->
                                    <div class="form-group">
                                        <label for="txtMsg" class="col-sm-3 control-label"><fly:translate name="lbl_message" /> *<span id="loading"></span><fly:modify name='lbl_message' /></label>
                                        <div class="col-sm-9">
                                            <textarea name="txt_cmessage" id="txt_cmessage" cols="50" rows="5" class="form-control" required="required"></textarea>
                                            <br>
                                            <button type="submit" name="client_send" id="client_send" class="submit"><fly:translate name='c_button' /><fly:modify name="c_button" /></button>
                                        </div>

                                    </div>
                                </form>
                            </fly:block>

                        </div>
                        <fly:block name="thanks-send">
                            <div class="msg-send"><fly:translate name="txt_thanks_send" /><fly:modify name='txt_thanks_send' /></div>
                        </fly:block>
                        <fly:block name="error-send">
                            <div class="msg-send"><fly:translate name="txt_error_send" /><fly:modify name='txt_error_send' /></div>
                        </fly:block>
                    </div>
                </div><!-- END:tab-content -->
            </div>
        </div>
    </div></div><!-- END:view-container gray-back -->
<fly:block name="sesstion_user_1">
    <div id="photo_place_name">			
        <fly:block name="liste">
            <div id="h1_location_detail"><h2><fly:translate name='text_9'/><fly:modify name="text_9" /></h2></div>
            <form method="post" name="order" id="order">
                <table class="table">
                    <thead>
                        <tr>
                            <td title="position" style="width: 60px;"><div class="header general" ><fly:translate name='text_1'/><fly:modify name="text_1" /></div></td>
                            <td title="image" style="width: 60px;"><div class="header general"><fly:translate name='text_2'/><fly:modify name="text_2" /></div></td>
                            <td title="status"><div class="header general" ><fly:translate name='text_11'/><fly:modify name="text_11" /></div></td>
                            <td class="droite"><fly:translate name='text_6'/><fly:modify name="text_6" /></td>
                    </tr>
                    </thead>			
                    <tbody id="item_list">
                    <fly:list name="listPhotos">
                        <tr class="<fly:variable name='type_ligne' />" onmouseover="this.className = 'over';" onmouseout="this.className = '<fly:variable name='type_ligne' />'">
                            <td><input type="text" name="<fly:variable name='id_fichier'/>" onkeypress="return keyEnable(event, 'number')" value="<fly:variable name='position'/>" size="1"/></td>
                            <td>																				
                                <div class="b_imgs" >
                                    <div id="photo_texte">
                                        <a class="zoom-gallery"	href="/<fly:variable name='url_photo_list_zoom' />"	rel="group_photo" id="/<fly:variable name='src_image_preview' />" >													
                                            <img src="/<fly:variable name='src_image' />" />
                                        </a>
                                    </div>
                                </div>											
                            </td>
                            <td>
                        <fly:variable name='status' />										
                        <fly:block name="status_validate_photo"><input type="button" name="status_waiting_photo" id="<fly:variable name='id_fichier_validate_photo' />" value="<fly:translate name="button_validate_photo" />" class="status_waiting_photo" /><fly:modify name="button_validate_photo" /></fly:block>
                        <fly:block name="status_Refused_photo"><input type="button" name="validate_photo" id="<fly:variable name='id_fichier_validate_photo' />" value="<fly:translate name="button_refused_photo" />" class="validate_photo" /><fly:modify name="button_refused_photo" /></fly:block>
                        </td>								
                        <td class="droite">
                        <fly:block name="status_main_photo"><fly:translate name='button_5' /><fly:modify name='button_5' />&nbsp;</fly:block>
                        <fly:block name="button_main_photo">
                            <input type="button" name="main_photos" id="<fly:variable name='id_photo_category' />" value="<fly:translate name='button_1'/>" class="main_photos submit"><fly:modify name="button_1" /> &nbsp;
                        </fly:block>
                        <span id="<fly:variable name='id_fichier'/>" class="delete"><fly:translate name='text_5'/></span><fly:modify name="text_5" />
                        <input type="hidden" name="language_link" id="language_link" value="<fly:variable name='id_link'/>">
                        </td>
                        </tr>
                    </fly:list>
                    </tbody>				
                </table>
                <input type="hidden" name="id_photo_waiting" id="id_photo_waiting"  />
                <input type="hidden"  id="validated_photo_waiting" value="waiting" />
                <input type="hidden" name="id_refused_photo" id="id_refused_photo"  />
                <input type="hidden"  id="refused_photo" value="refused" />

                <input type="hidden"  id="validated" value="validated" />
                <input type="hidden" name="id_photo" id="id_photo"  />
                <input type="hidden" name="id_fichier" id="id_fichier" >
                <input type="button"  name="vilidate" value="<fly:translate name='botton_4'/>" id="validate" class="submit"/><fly:modify name="botton_4" />
            </form>
        </fly:block>			
        <fly:block name="liste_video">
            <div id="h1_location_detail"><h2><fly:translate name='text_10'/><fly:modify name="text_10" /></h2></div>
            <form method="post" name="order_video" id="order_video">
                <table class="table">
                    <thead>
                        <tr>
                            <td title="position" style="width: 60px;"><div class="header general" ><fly:translate name='text_1'/><fly:modify name="text_1" /></div></td>
                            <td title="image" style="width: 60px;"><div class="header general"><fly:translate name='text_12'/><fly:modify name="text_12" /></div></td>
                            <td title="status"><div class="header general" ><fly:translate name='text_11'/><fly:modify name="text_11" /></div></td>
                            <td class="droite"><fly:translate name='text_6'/><fly:modify name="text_6" /></td>
                    </tr>
                    </thead>			
                    <tbody id="item_list">
                    <fly:list name="list_video">									
                        <tr class="<fly:variable name='type_ligne_video' />" onmouseover="this.className = 'over';" onmouseout="this.className = '<fly:variable name='type_ligne_video' />'">
                            <td><input type="text" name="<fly:variable name='id_fichier_video'/>" onkeypress="return keyEnable(event, 'number')" value="<fly:variable name='position_video'/>" size="1"/></td>
                            <td>
                                <!--  <a href="javascript:getURL('<fly:variable name='url'/>',null,null,'');"  >
                                        <img src="/<fly:variable name='src_image' />"/>
                                </a>-->
                                <a class="video_thumbnail" style="width:<fly:variable name='width'/>px; height:<fly:variable name='height'/>px;" href="javascript:getURL('<fly:variable name="url"/>',null,null,'');" title="<fly:variable name="video_title"/>">
                                    <img id="img<fly:variable name='id_video'/>" src="<fly:variable name='src_image_play' />" width="<fly:variable name='width'/>px" height="<fly:variable name='height'/>px" />								      				
                                    <u style="right:3px;"><fly:variable name='duration'/></u>
                                </a>
                            </td>
                            <td>
                        <fly:variable name='status_video' />
                        <fly:block name="status_validate_video"><input type="button" name="status_waiting_video" id="<fly:variable name='id_fichier_validate_video' />" value="<fly:translate name="button_validate_video" />" class="status_waiting_video" /><fly:modify name="button_validate_video" /></fly:block>
                        <fly:block name="status_Refused_video"><input type="button" name="validate_video" id="<fly:variable name='id_fichier_validate_video' />" value="<fly:translate name="button_refused_video" />" class="validate_video" /><fly:modify name="button_refused_video" /></fly:block>
                        </td>								
                        <td class="droite">
                            <div class="ajax_loading"></div>
                            <!-- <a href="<fly:variable name='script_change_thumbnail'/>" class="button"><fly:translate name='button_4'/></a><fly:modify name='button_4'/> -->
                        <input type="button" onclick="< fly:variable name = 'script_change_thumbnail' / >" class="submit" value="<fly:translate name='button_4'/>"> <fly:modify name='button_4'/> 
                        <div class="hidden" id="start_frame<fly:variable name='id_video'/>"><fly:variable name='start_frame' /></div>
                        <div class="hidden" id="all_frame<fly:variable name='id_video'/>"><fly:variable name='all_frame' /></div>
                        <div class="hidden" id="filename<fly:variable name='id_video'/>"><fly:variable name='filename' /></div>
                        <div class="hidden" id="selected_frame<fly:variable name='id_video'/>"><fly:variable name='selected_frame' /></div>

                        <fly:block name="status_main_video"><fly:translate name='button_5' /><fly:modify name='button_5' />&nbsp;</fly:block>
                        <fly:block name="button_main_video">
                            <input type="button" name="main_videos" id="<fly:variable name='id_category_video' />" value="<fly:translate name='button_2'/>" class="main_videos submit"><fly:modify name="button_2" /> &nbsp;
                        </fly:block>
                        <span id="<fly:variable name='id_fichier_video'/>" class="delete_video"><fly:translate name='text_5'/></span><fly:modify name="text_5" />
                        <input type="hidden" name="language_link_video" id="language_link_video" value="<fly:variable name='id_link_video'/>">
                        </td>
                        </tr>
                    </fly:list>
                    </tbody>				
                </table>
                <input type="hidden" name="id_video_waiting" id="id_video_waiting"  />
                <input type="hidden"  id="validated_video_waiting" value="waiting" />
                <input type="hidden" name="id_refused_video" id="id_refused_video"  />
                <input type="hidden"  id="refused_video" value="refused" />

                <input type="hidden"  id="validated_video" value="validated_video" />
                <input type="hidden" name="id_video" id="id_video"  />
                <input type="hidden" name="id_fichier_video" id="id_fichier_video" >
                <input type="button"  name="validate_video" value="<fly:translate name='botton_4'/>" id="validate_video" class="submit"/><fly:modify name="botton_4" />

            </form>
        </fly:block>
    </div>
</fly:block>
<fly:block name="no_sesstion_user">

    <fly:block name="liste_video_no_session1">
        <div id="h1_location_detail"><h2><fly:translate name="text_10"/><fly:modify name="text_10" /></h2></div>
        <div id="list-gallery_video-location-detail">		
            <fly:list name="list_video_no_session">
                <div class="b_img" >
                    <div id="photo_texte" >									
                        <a class="video_thumbnail" style="width:<fly:variable name='width'/>px; height:<fly:variable name='height'/>px;" href="javascript:getURL('<fly:variable name="url_no_session"/>',null,null,'');" >
                           <img src="<fly:variable name='src_image_no_session' />" width="<fly:variable name='width'/>px" height="<fly:variable name='height'/>px" />
                            <i></i>
                            <u style="right:4px;margin-bottom: 6px;"><fly:variable name='duration'/></u>
                        </a>
                    </div>
                </div>							
            </fly:list>		
        </div>
    </fly:block>
</fly:block>
<fly:block name="map_canvas_location">
    <div id="map_canvas_location"></div>
    <div id="map_place_html_<fly:variable name='index' />" class="hide">
        <table>
            <tr>
            <fly:block name="map_image">
                <td valign="top">
                    <div id="hilight-image">
                        <img src="/<fly:variable name="map_photo" />" width="<fly:variable name="map_width" />" height="<fly:variable name="map_height" />" />
                    </div>
                </td>
            </fly:block>
            <td valign="top">
            <fly:block name="place_name"><b><fly:variable name="place_name_slash" /></b><br></fly:block>
            <fly:block name="show_address"><fly:variable name="address" /><br /></fly:block>
            <fly:block name="province"><fly:variable name="province" /><br /></fly:block>
            <fly:block name="city"><fly:variable name="city" /><br /></fly:block>
            <fly:block name="district"><fly:variable name="district" /><br /></fly:block>
            <fly:block name="zip_code"><fly:variable name="zip_code" /><br /><br /></fly:block>
            </td>
            </tr>
        </table>
        <br/><br/>
    </div>
</fly:block>
<input type="hidden" id="map_canvas_location" />
<fly:block name="message_successful">
    <div id="form-ligne">
        <fly:variable name='message_successful' />
    </div>
</fly:block>

<input type="hidden" name="id_user" id="id_user" value='<fly:variable name="id_user"/>'>
<input type="hidden" name="id_location" id="id_location" value='<fly:variable name="id_location"/>'>
<input type="hidden" name="REP_AJAX" id="REP_AJAX" value='<fly:variable name="REP_AJAX"/>'>
<input type="hidden" name="REP_AJAX_VARIABLE" id="REP_AJAX_VARIABLE" value='<fly:variable name="REP_AJAX_VARIABLE"/>'>
<input type="hidden" name="owner_or_not" id="owner_or_not" value='<fly:variable name="owner_or_not"/>'>
<input type="hidden" name="variable_exist" id="variable_exist" value='<fly:variable name="variable_exist"/>'>
<span id="text_14" style="display:none;"><fly:translate name='text_14'/></span>
<span id="text_16" style="display:none;"><fly:translate name='text_16'/></span>
<span id="text_19" style="display:none;"><fly:translate name='text_19'/></span>
<span id="text_20" style="display:none;"><fly:translate name='text_20'/></span>
<script type="text/javascript">
            $('document').ready(function(){
    $('form').validate();
            $('.info_bull').mouseover(function(){
    setInfoBulles(this);
    }).mouseout(function(){
    $('.info_divs').hide();
    });
            /****** info bulles********/
            $('.info_bull').mouseover(function(){
    setInfoBulles(this);
    }).mouseout(function(){
    $('.info_div').hide();
    });
    });
            function setInfoBulles(obj){
            var offset = $(obj).offset(); //,'left':offset.left
                    $('.info_divs').css({'top':offset.top-320});
                    if ($(obj).attr('alt') != "undefined"){
            $('.info_div_text').text($(obj).attr('alt'));
            } else{
            $('.info_div_text').text($(obj).attr('title'));
            }
            $('.info_divs').css("display", "block");
            }
</script>
<script type="text/javascript">
    var disable_click = false;
            var id_user = $("#id_user").val();
            var id_location = $("#id_location").val();
            var owner = $("#owner_or_not").val();
            var variable_exist = $("#variable_exist").val();
            var swfplayer = "/_script/flash/flowplayer-3.2.0.swf";
            $(document).ready(function() {
    //$(".b_imgs  a.imgs").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000});
    //$("#list-photos  a.imgs").fancybox({ 'zoomSpeedIn': 1000, 'zoomSpeedOut': 1000});

    $(".delete").click(function(){
    var id = $(this).attr("id");
            $("#id_fichier").val(id);
            $("#validated").attr("name", "fichier");
            $("#order").submit();
    });
            $(".delete_video").click(function(){
    var id = $(this).attr("id");
            $("#id_fichier_video").val(id);
            $("#validated_video").attr("name", "fichier_video");
            $("#order_video").submit();
    });
            $("#validate").click(function(){
    $("#validated").attr("name", "ordre");
            $("#order").submit();
    });
            $("#validate_video").click(function(){
    $("#validated_video").attr("name", "ordre_video");
            $("#order_video").submit();
    });
            $(".main_photos").click(function(){
    var id = $(this).attr("id");
            $("#id_photo").val(id);
            $("#validated").attr("name", "photos");
            $("#order").submit();
    });
            $(".status_waiting_photo").click(function(){
    var id = $(this).attr("id");
            $("#id_photo_waiting").val(id);
            $("#validated_photo_waiting").attr("name", "validated_photo_waiting");
            $("#order").submit();
    });
            $(".validate_photo").click(function(){
    var id = $(this).attr("id");
            $("#id_refused_photo").val(id);
            $("#refused_photo").attr("name", "refused_photo");
            $("#order").submit();
    });
            $(".status_waiting_video").click(function(){
    var id = $(this).attr("id");
            $("#id_video_waiting").val(id);
            $("#validated_video_waiting").attr("name", "validated_video_waiting");
            $("#order_video").submit();
    });
            $(".validate_video").click(function(){
    var id = $(this).attr("id");
            $("#id_refused_video").val(id);
            $("#refused_video").attr("name", "refused_video");
            $("#order_video").submit();
    });
            $(".main_videos").click(function(){
    var id = $(this).attr("id");
            $("#id_video").val(id);
            $("#validated_video").attr("name", "videos");
            $("#order_video").submit();
    });
            $("#modify_click").mouseover(function(){
    $("#txt_modify").addClass("c_red");
    });
            $("#modify_click").mouseout(function(){
    $("#txt_modify").removeClass("c_red");
    });
            $("#modify_click").click(function(){
    window.location.href = "place-create.php?id=" + $("#id_location").val();
    });
            $("#modify_marker").click(function(){
    window.location.href = "place-marker.php?id=" + $("#id_location").val() + "&modify";
    });
            $("#modify_upload").click(function(){
    window.location.href = "upload-photo-video.php?id=" + $("#id_location").val();
    });
            if (id_user != '' && owner == 'owner'){
    $("#border_contact").css("display", "block");
            //$(".owner").css("display","block");
    } else {
    //$(".not_owner").css("display","block");
    $("#button_contact_user").css("display", "block");
    }
    if (variable_exist == 'exist'){
    $("#contact_variable").css("display", "none");
    }
    $("#btn_contact").click(function(){
    //$("#loading").html('<img src="_design/30.gif"/>');
    $.ajax({
    url: $('#REP_AJAX').val(),
            type: "POST",
            data: "id_link=" + id_location,
            async: false,
            success: function(mgs){
            if (mgs == 'true'){
            $("#button_contact_user").css("display", "none");
                    $("#border_contact").slideDown("slow");
                    $('#show_main_message').css("display", "none");
                    //$("#loading").html("");
                    $("#show_i_am").css("display", "block");
            } else{
            if ($('#show_message').html() == ''){
            $('#show_message').html($("#text_14").html());
                    $('#show_main_message').slideDown("slow");
                    $("#button_contact_user").css("display", "none");
                    $("#show_i_am").css("display", "block");
                    //$("#loading").html("");									
                    //$("#contact_variable").css("display","none");
            }
            }
            }
    });
    });
            $("#btn_variable").click(function(){
    //$("#loading").html('<img src="_design/30.gif"/>');
    $.ajax({
    url: $('#REP_AJAX_VARIABLE').val(),
            type: "POST",
            data: "id_link=" + id_location,
            async: false,
            success: function(mgs){
            if (mgs == 'true'){
            $("#contact_variable").css("display", "none");
                    $('#show_variable_message').css("display", "none");
            }
            else{
            if ($('#variable_message').html() == ''){
            $('#variable_message').html($("#text_16").html());
                    $('#show_variable_message').slideDown("slow");
                    //$("#button_contact_user").css("display","none");
                    $("#contact_variable").css("display", "none");
            }
            }
            }
    });
    });
            jQuery.each($('.video_thumbnail > i'), function(i, val) {
            var item_top = ($(this).prev().height() / 2) - ($(this).height() / 2);
                    var item_left = ($(this).prev().width() / 2) - ($(this).width() / 2);
                    $(this).css({'top':item_top,'left':item_left,'display':'block'});
                    pngfix_($(this));
            });
            $("#print_news").click(function(){
    if ($('#print_message').html() == ''){
    $('#print_message').html($("#text_19").html());
            $('#show_message_print').slideDown("slow");
            $(this).css("display", "none");
    }
    });
    });
            function change_thumbnail(id_video){
            if (disable_click)return;
                    if (id_video == ''){
            alert('The video file not exist');
            } else{
            $.ajax({
            type: "POST",
                    dataType: "html",
                    url: "<fly:variable name="rep_ajax"/>upload_fichier_video_image_list.php",
                    data: "frame_start=" + $('#selected_frame' + id_video).text().trim() +
                    '&filename=' + $('#filename' + id_video).text().trim() +
                    '&id_fichier=' + id_video +
                    '&rep_ajax=<fly:variable name="rep_ajax"/>' +
                    '&lang=<fly:variable name="lang"/>',
                    beforeSend: function(){
                    ajaxLoading(1);
                            disable_click = true;
                    },
                    success: function(data){
                    ajaxLoading(0);
                            disable_click = false;
                            $.jPopup_translate.show("", data, 1040, 420);
                    },
                    error: function(data, textStatus, e){
                    $('#sms_error').text('Error on load image.').show('fast');
                            if (timeout) clearTimeout(timeout);
                            timeout = setTimeout(function(){
                            $('#sms_error').fadeOut("slow");
                            }, delay_search);
                    }
            });
            }
            }



    // Validate Status
    function updateRefused(get_comment_refused){
    var get_comment_refused = $(".get_comment_refused").text();
            var div = '<div>' +
            '<h3>Comment</h3><form method="post" id="frm_create_address" >' +
            '<textarea name="comment_refused" id="comment_refused" rows="10" cols="60">' + get_comment_refused + '</textarea><br /><br />' +
            '<input type="submit" id="validate_refused" name="validate_refused" value="OK" class="bouton" />' +
            '</form>' +
            '</div>';
            $.jPopup.show("", div, 500, 250);
    }

</script>
<script type="text/javascript">
    $(document).ready(function(){

    < fly:block name = "map_canvas_location" >
            var this_ = this;
            $('#map_canvas_location', this_).gmap({'center': '<fly:variable name="latitude_map" />, <fly:variable name="longitude_map" />',zoom: <fly:variable name="zome_level" />}).bind('init', function(evt, map) {//11.558831,104.91745
                                $('#map_canvas_location',this_).gmap('addMarker', {'position': '<fly:variable name="latitude" />, <fly:variable name="longitude" />', 'animation': google.maps.Animation.DROP }, function(map, marker){
                                $('#map_canvas_location').gmap('addInfoWindow', { 'position':marker.getPosition() }, function(infoWindow) {
    //Fix the scrollbar issue
    var div = document.createElement('div');
            div.innerHTML = $('#map_place_html_' + < fly:variable name = 'index' / > ).html();
            infoWindow.setContent(div);
            $(marker).click(function() {
    infoWindow.open(map, marker);
            map.panTo(marker.getPosition());
    });
    });
    });
    });
            < /fly:block>
            //remove list_infos after copied them to the infoWindow
            $('.list_infos').remove();
    });</script>
<script type="text/javascript">
            $(function(){
            // =================== popup gallery ======================
            $('.zoom-gallery').magnificPopup({
            type: 'image',
                    gallery:{
                    enabled:true
                    },
                    zoom: {
                    enabled: true,
                            duration: 300, // don't foget to change the duration also in CSS
                            opener: function(element) {
                            return element.find('img');
                            }
                    }
            });
                    // ======================= append banner to bottom on small screen ==================
                    var banner = $('#banner-right');
                    var gallery = $('#gallery');
                    var viewContainer = $('.view-container .row');
                    var myWindow = $(window);
                    var appendBanner = function(width){
                    if (width < 768){
                    if (gallery.find('#banner-right' == "undefined"))
                            gallery.append(banner);
                            banner = $('#banner-right');
                    }
                    else{
                    if (viewContainer.find('#banner-right') == "undefined")
                            viewContainer.append(banner);
                            banner = $('#banner-right');
                    }
                    }

            myWindow.resize(function(){
            // appendBanner($(this).width());
            });
            });
</script>